/************************* Advanced Card System Ltd. ***************************
* File Name          : main.c
* Version            : V1.0.0
* Date               : 06/06/2010
* Author             : Stacy
* Description        : Stm32 Reader main file
*******************************************************************************/

/* Includes ------------------------------------------------------------------*/
#include <stdint.h>

#include "BooterConfig.h"
#include "Booter.h"
#include "Bsp.h"
/*Extern function------------------------------------------------------------------------*/
/* Extern variables ----------------------------------------------------------*/

/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/


/*******************************************************************************
* Function Name  : main.
* Description    : main routine.
* Input          : None.
* Output         : None.
* Return         : None.
*******************************************************************************/
int main(void){
	uint32_t Mode;
	
	Booter_Init();
	Mode = Booter_CheckMode();
	Booter_UpgradeApp(Mode);
	Booter_BootApp();
	Booter_Reset();

	return 0;
}


/******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/
